Remove DAIF bits handling macros
authorGerald Lejeune <[email protected]>
Tue, 22 Mar 2016 10:07:04 +0000 (11:07 +0100)
committerGerald Lejeune <[email protected]>
Wed, 30 Mar 2016 15:31:44 +0000 (17:31 +0200)
These macros are unused and redundant with other CPU system registers
functions.

Moreover enable_serror() function implementation may not reach its purpose
because it does not handle the value of SCR_EL3.EA.

Signed-off-by: Gerald Lejeune <[email protected]>
include/lib/aarch64/arch_helpers.h

index d1ad31dc098d2f39583f0d0a406904d673cce412..6118c6ebf04bf4ccf277610e4a6a790b43610090 100644 (file)
@@ -168,15 +168,6 @@ void disable_mmu_icache_el3(void);
 DEFINE_SYSREG_WRITE_CONST_FUNC(daifset)
 DEFINE_SYSREG_WRITE_CONST_FUNC(daifclr)
 
-#define enable_irq()                   write_daifclr(DAIF_IRQ_BIT)
-#define enable_fiq()                   write_daifclr(DAIF_FIQ_BIT)
-#define enable_serror()                        write_daifclr(DAIF_ABT_BIT)
-#define enable_debug_exceptions()      write_daifclr(DAIF_DBG_BIT)
-#define disable_irq()                  write_daifset(DAIF_IRQ_BIT)
-#define disable_fiq()                  write_daifset(DAIF_FIQ_BIT)
-#define disable_serror()               write_daifset(DAIF_ABT_BIT)
-#define disable_debug_exceptions()     write_daifset(DAIF_DBG_BIT)
-
 DEFINE_SYSREG_READ_FUNC(par_el1)
 DEFINE_SYSREG_READ_FUNC(id_pfr1_el1)
 DEFINE_SYSREG_READ_FUNC(id_aa64pfr0_el1)